import Vue from 'vue'
import App from './App.vue'
import router from './router'

import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'

import axios from 'axios'

import './assets/scss/global.scss'
import VueAxios from "vue-axios";

axios.interceptors.request.use(function (request) {
    request.url = `http://goapi.cn/api${request.url}`;
    return request;
});

Vue.use(ViewUI, {size: 'small'});
Vue.use(VueAxios, axios);

Vue.config.productionTip = false;
new Vue({
    router,
    render: h => h(App),
}).$mount('#app');
